body{
    margin: 0 auto;
    min-width: 320px;
    max-width: 640px;
    background: #fff;
    font-size: 14px;
    font-family: 14px;
    font-family: -apple-system, Helvetica, sans-serif;
    line-height: 1.5;
    color: #666;
    height: 800px;
}
/* 点击高亮我们需要清除，设置为transparent完全透明 */
* {
    -webkit-tap-highlight-color: transparent;
}
/* 在移动端浏览器默认的外观，在ios上加上这个属性才能给按钮和输入框自定义样式 */
input{
    -webkit-appearance: none;
}
/* 禁用长按页面时的弹出菜单 */
img,a{
    -webkit-touch-callout: none;
}

a {
    color: #666;
    text-decoration: none;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
img{
    vertical-align: middle;
}

.clear::after{
    content: "";
    display: block;
    clear: both;
}

/* app */
.app{
    height: 45px;
}
.app ul li{
    float: left;
    height: 45px;
    background-color: #333;
    text-align: center;
    line-height: 45px;
    color: #fff;
}
.app ul li:nth-child(1){
    width: 8%;
}
.app ul li:nth-child(1) img{
    width: 10px;
}
.app ul li:nth-child(2){
    width: 10%;
}
.app ul li:nth-child(2) img{
    width: 30px;
    /* 行内元素才有用，基线对齐方式 */
    vertical-align: middle;
}
.app ul li:nth-child(3){
    width: 57%;
}
.app ul li:nth-child(4){
    width: 25%;
    background-color: #f63515;
}

/* 搜索 */
.search-wrap{
    /* 这里没有设置top与left，所以会按照元素所在的位置给个默认值 */
    position: fixed;
    height: 44px;
    overflow: hidden;
    width: 100%;
    min-width: 320px;
    max-width: 640px;
}
.search-bth{
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 44px;
    /* background-color: purple; */
}
.search-bth::before{
    content: "";
    display: block;
    width: 20px;
    height: 18px;
    background: url(../images/s-btn.png) no-repeat;
    background-size: 20px 18px;
    margin: 14px 0 0 15px;
}
.search-login{
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 44px;
    /* background-color: pink; */
    color: #fff;
    line-height: 44px;
}
.search{
    position: relative;
    height: 30px;
    background-color: #fff;
    margin: 0 50px;
    border-radius: 15px;
    margin-top: 7px;
}
.jd-icon{
    width: 20px;
    height: 15px;
    position: absolute;
    top: 8px;
    left: 13px;
    background: url(../images/jd.png) no-repeat;
    background-size: 20px 15px;
}
.jd-icon::after{
    position: absolute;
    top: 0;
    right: -8px;
    content: "";
    display: block;
    width: 1px;
    height: 15px;
    background-color: #ccc;
}
.sou{
    position: absolute;
    width: 18px;
    height: 15px;
    top: 8px;
    left: 50px;
    background: url(../images/jd-sprites.png) no-repeat;
    background-size: 200px auto;
    background-position: -82px 0;
}

/* 滑动图 */
/* .slider{
    margin-bottom: -30px;
} */
.slider img{
    display: block;
    width: 100%;
}
/* 品牌日 */
.brand{
    margin-top: -10px;
    position: relative;
    border-radius: 10px 10px 0 0;
    /* overflow: hidden; */
    background-color: #fff;
}
.brand div{
    float: left;
    width: 33.33%;
}
.brand div img{
    width: 100%;
}
/* nav */
nav{
    padding-top: 5px;
}
nav a{
    float: left;
    width: 20%;
    text-align: center;
}
nav a img{
    width: 40px;
    margin: 10px 0;
}
nav a span{
    display: block;
}

/* news */
.news{
    margin-top: 20px;
}
.news img{
    width: 100%;
}
.news a{
    float: left;
    box-sizing: border-box;
}

.news a:nth-child(1){
    width: 50%;
}
.news a:nth-child(n+2){
    width: 25%;
    border-left: 1px solid #ccc;

}


/* 底部 */
.footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -3px 3px rgba(0, 0, 0, .2);
}
.footer div{
    float: left;
    /* height: 75px; */
    width: 20%;
}

.footer div a img{
    width: 100%;
}
